package com.cy.pj.activity.dao;

import com.cy.pj.activity.pojo.Activity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
/**活动模块的数据逻辑对象*/
@Mapper
public interface ActivityDao {

    int insertObject(Activity activity);

    @Select("select * from tb_activity order by createdTime desc ")
    List<Activity> findActivitys();

}